package BusinessLogic;

public class OutLibraryController implements IOutLibraryController{

	OutLibraryModel olm = new OutLibraryModel();
	
	public boolean addItemControl(int id,String name,double price,double specialPrice,String specialStart,String specialEnd,double num,String produceDate,String scrapDate,double costPrice,String inLibraryDate){
		return olm.addItem(id, name, price, specialPrice, specialStart, specialEnd, num,produceDate,scrapDate,costPrice,inLibraryDate);
	}
	
	public boolean removeItemControl(int GoodID){
		return olm.removeItem(GoodID);
	}
	
	public boolean libraryOutControl(){
		return olm.libraryOut();
	}
	
	public LibraryItem showInLibraryOutformationByIDControl(int ID){
		return olm.showOutLibraryInformationByID(ID);
	}
	
	public String getGoodDescriptionByIDControl(int ID){
		return olm.getGoodDescriptionByID(ID);
	}
	
	public double getGoodPriceByIDControl(int ID){
		return olm.getGoodPriceByID(ID);
	}
	
	public double getGoodSpecialPriceByIDControl(int ID){
		return olm.getGoodSpecialPriceByID(ID);
	}
	
	public String getGoodSpecialTimeStartByIDControl(int ID){
		return olm.getGoodSpecialTimeStartByID(ID);
	}
	
	public String getGoodSpecialTimeEndByIDControl(int ID){
		return olm.getGoodSpecialTimeEndByID(ID);
	}
	
	public double getGoodNumberByIDControl(int ID){
		return olm.getGoodNumberByID(ID);
	}
	
	public String getGoodProduceDateByIDControl(int ID){
		return olm.getGoodProduceDateByID(ID);
	}
	public String getGoodScrapDateByIDControl(int ID){
		return olm.getGoodScrapDateByID(ID);
	}
	public double getGoodCostPriceByIDControl(int ID){
		return olm.getGoodCostPriceByID(ID);
	}
	
	public void saveLibraryOutRecordControl(int GoodID,double goodNum,String libraryOutPerson,String libraryOutDate,String libraryOutReason){
		olm.saveLibraryOutRecord(GoodID,goodNum,libraryOutPerson, libraryOutDate, libraryOutReason);
	}
}
